CFLAGS ?= -g -O2
override CFLAGS += -Wall -D_GNU_SOURCE -I ../src -L ../src

include ../Makefile.quiet

ifneq ($(MAKECMDGOALS),clean)
include ../config-host.mak
endif

all_targets += telemetry-listen display-tree display-columnar discover-loop

all: $(all_targets)

%: %.c
	$(QUIET_CC)$(CC) $(CFLAGS) -o $@ $< -lnvme ${LDFLAGS}

clean:
	rm -f $(all_targets)
